{% extends "base.html" %}

{% block title %}
Prijava v sistem
{% endblock %}
{% block content %}

{% if form.errors %}
<div class="message error">Vpisali ste napačno uporabniško ime ali geslo. Poskusite znova</div>
{% endif %}

<form method="post">
{% csrf_token %}
<p>
{{ form.username.label_tag }}
{{ form.username }}</p>
<p>
{{ form.password.label_tag }}
{{ form.password }}</p>

<input type="submit" value="Prijavi" />
<input type="hidden" name="next" value="{{ next }}" />
</form>

{% endblock %}>
